PhysicsEventHandler Class Reference

#include <CarPhysics.h>

List of all members.

Public Member Functions

 PhysicsEventHandler (osg::ref_ptr< osgProducer::Viewer > viewer)
 ~PhysicsEventHandler ()
bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
virtual void accept (osgGA::GUIEventHandlerVisitor &v)

Public Attributes

bool _throttleSet
bool _brakeSet
bool _steerLeftSet
bool _steerRightSet
bool _stop

Private Attributes

osg::ref_ptr< osgProducer::Viewer > viewer_
osg::ref_ptr< osg::Group > root


Detailed Description

Definition at line 144 of file CarPhysics.h.


Constructor & Destructor Documentation

PhysicsEventHandler::PhysicsEventHandler (  osg::ref_ptr< osgProducer::Viewer >  viewer  )  [inline]
 

Definition at line 147 of file CarPhysics.h.

PhysicsEventHandler::~PhysicsEventHandler (   )  [inline]
 

Definition at line 151 of file CarPhysics.h.


Member Function Documentation

virtual void PhysicsEventHandler::accept (  osgGA::GUIEventHandlerVisitor &  v  )  [inline, virtual]
 

Definition at line 155 of file CarPhysics.h.

bool PhysicsEventHandler::handle (  const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  aa
) 
 

Definition at line 466 of file CarPhysics.cpp.

References _brakeSet, _steerLeftSet, _steerRightSet, _stop, and _throttleSet.


Member Data Documentation

bool PhysicsEventHandler::_brakeSet
 

Definition at line 160 of file CarPhysics.h.

Referenced by handle().

bool PhysicsEventHandler::_steerLeftSet
 

Definition at line 161 of file CarPhysics.h.

Referenced by handle().

bool PhysicsEventHandler::_steerRightSet
 

Definition at line 162 of file CarPhysics.h.

Referenced by handle().

bool PhysicsEventHandler::_stop
 

Definition at line 163 of file CarPhysics.h.

Referenced by handle().

bool PhysicsEventHandler::_throttleSet
 

Definition at line 159 of file CarPhysics.h.

Referenced by handle().

osg::ref_ptr<osg::Group> PhysicsEventHandler::root [private]
 

Definition at line 166 of file CarPhysics.h.

osg::ref_ptr<osgProducer::Viewer> PhysicsEventHandler::viewer_ [private]
 

Definition at line 165 of file CarPhysics.h.


The documentation for this class was generated from the following files:
Generated on Sun May 28 18:54:14 2006 for TraffEdu by  doxygen 1.4.6-NO